<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>上报协调查看</title>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/common/common.js" type="text/javascript"></script>
    <script src="/static/js/editor/wangEditor.min.js" type="text/javascript"></script>
    <link href="/webjars/miniui/css/demo.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" method="post" style="height:100%;width: 100%;overflow-x: auto;overflow-y: auto;">
    <!-- 编辑框START-->
    <div id="editform" class="form" style="padding:10px;">
        <input name="id" class="mini-hidden" style="width: 100%;" />
        <input name="addgovid" class="mini-hidden" style="width: 100%;" value="${addgovid!''}" />
        <input name="jglevel" class="mini-hidden" style="width: 100%;" value="${jglevel!''}" />
        <input name="replytime" class="mini-hidden" style="width: 100%;" value="${replytime!''}" />
        <input name="readtime" class="mini-hidden" style="width: 100%;" value="${readtime!''}" />
        <input name="tip_flag" class="mini-hidden" style="width: 100%;" value="${tip_flag!''}" />
        <table class="form-table" align="center" cellspacing="8">
            <tr>
                <td align="right"><font color="#dc143c">*</font>标题:</td>
                <td>
                    <input name="title" id="title" class="mini-textbox" style="width: 265px" required="true" type="text" readonly="readonly" />
                </td>
                <td align="right"><font color="#dc143c">*</font>上报单位:</td>
                <td>
                    <input name="addgovid" class="mini-textbox" style="width: 265px" required="true" type="text" readonly="readonly" />
                </td>
            </tr>
            <tr>
                <td align="right"><font color="#dc143c">*</font>上报时间:</td>
                <td>
                    <input name="sendtime" class="mini-textbox" style="width: 265px" required="true" type="text" readonly="readonly" />
                </td>
                <td><font color="#dc143c">*</font>上报类型:</td>
                <td>
                    <input name="sbtype" id="sbtype" class="mini-combobox" style="width: 265px" required="true" readonly="readonly"
                           textField="codeName" valueField="codeId" emptyText="请选择..."
                           url="/azbj/shzzgl/socialOrgInfo/getComboboxData?codeType=3_9"
                    />
                </td>
            </tr>
            <tr>
                <td align="right" style="vertical-align:text-top;"><font color="#dc143c">*</font>内容:</td>
                <td colspan="3">
                    <div id="content" name="content" style="width: 610px;" readonly="readonly">
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right">抄送单位:</td>
                <td colspan="3">
                    <input name="csjigou" id="csjigou" class="mini-combobox" style="width: 600px" multiSelect="true" readonly="readonly"
                           textField="codeName" valueField="codeId" emptyText="请选择..."
                           url="/azbj/sbxtgl/departmentInfo/getCkDepartmentType"
                    />
                </td>
            </tr>
            <tr>
                <td align="right" style="vertical-align:text-top;"><font color="#dc143c">*</font>意见:</td>
                <td colspan="3">
                    <div id="toolbar1" style="width: 610px;border: 1px solid #ccc;"></div>
                    <div id="content1" name="content1" style="width: 610px;height: 150px;border: 1px solid #ccc;" readonly="readonly">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <!--编辑框END-->
</form>

<script type="text/javascript">
    mini.parse();
    var W = window.wangEditor;
    var editor1 = new W('#toolbar1', '#content1');
    editor1.customConfig.menus = [
        'head',  // 标题
        'bold',  // 粗体
        'fontSize',  // 字号
        'fontName',  // 字体
        'italic',  // 斜体
        'foreColor',  // 文字颜色
        'backColor',  // 背景颜色
        'link',  // 插入链接
        'justify',  // 对齐方式
        'image',  // 插入图片
        'undo',  // 撤销
        'redo'  // 重复
    ];
    editor1.customConfig.uploadImgShowBase64 = true;
    // 隐藏“网络图片”tab
    editor1.customConfig.showLinkImg = false;
    editor1.customConfig.zIndex = 100;
    editor1.create();

    var E = window.wangEditor;
    var editor = new E('#content');
    editor.customConfig.menus = [
        'head',  // 标题
        'bold',  // 粗体
        'fontSize',  // 字号
        'fontName',  // 字体
        'italic',  // 斜体
        'foreColor',  // 文字颜色
        'backColor',  // 背景颜色
        'link',  // 插入链接
        'justify',  // 对齐方式
        'image',  // 插入图片
        'undo',  // 撤销
        'redo'  // 重复
    ];
    editor.customConfig.uploadImgShowBase64 = true;
    // 隐藏“网络图片”tab
    editor.customConfig.showLinkImg = false;
    editor.customConfig.zIndex = 100;
    editor.create();
    var form = new mini.Form("form1");

    //标准方法接口定义
    function SetData(data) {
        var o = mini.decode(data);
        form.setData(o);
        form.setChanged(false);
        form.setEnabled(false);
        editor.txt.html(data.content);
        editor1.txt.html(data.content1);
    }

    editor1.$textElem.attr('contenteditable', false);
    editor.$textElem.attr('contenteditable', false);
</script>
</body>
</html>